<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
	prefix="tiles"%>
<rich:panel header="#{messages['partner.approval']}">
	<h:panelGrid>
		<h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText>
	</h:panelGrid>
	
	<h:panelGrid width="100%">
			<h:outputText value="#{messages['partner.info']}" styleClass="sub_header" />
	</h:panelGrid>

	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
	
		<h:panelGroup>
			<h:outputLabel for="regAppNo" value="#{messages['partner.registration.no']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<h:outputText id="regAppNo"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.partnerRegNo}"></h:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="name" value="#{messages['contact.person']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<h:outputText id="name"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.contactPerson}"></h:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="department" value="#{messages['department']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="department"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.deparment}"></t:outputText>
		</h:panelGroup>
		
	    <h:outputLabel for="telephone" value="#{messages['telephone.no']}" styleClass="standardText_Label" />
    	<t:outputText id="telephone"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.telno}">
    	</t:outputText>
	    
	    
	    <h:outputLabel for="fax" value="#{messages['fax.no']}" styleClass="standardText_Label" />
    	<t:outputText id="fax"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.faxno}">
    	</t:outputText>
		
		
	   <h:panelGroup>
		    <h:outputLabel for="email" value="#{messages['email']}" styleClass="standardText_Label" />
	   </h:panelGroup>
	   <h:panelGroup>
	   	<t:outputText id="email"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.email}">
	   	</t:outputText>
	   </h:panelGroup>

	</t:panelGrid>
	
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['company.info']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid id="compInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
		<h:panelGroup>
			<h:outputLabel for="CompanyName" value="#{messages['name']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="CompanyName"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compName}"></t:outputText>
		
		<h:panelGroup>
			<h:outputLabel for="RegNo" value="#{messages['registration.no']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="RegNo"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.regNo}"></t:outputText>
   
		<h:panelGroup>
	    	<h:outputLabel for="CompanyAdress1" value="#{messages['address']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="CompanyAdress1"   styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compAddress1}"></t:outputText>
	    
	    <h:panelGroup></h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="CompanyAdress2"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compAddress2}"></t:outputText>
	    </h:panelGroup>
	    
	    <h:panelGroup>
	    	<h:outputLabel for="CompanyPostcode" value="#{messages['postcode']}" styleClass="standardText_Label" />
	    </h:panelGroup>
    	<t:outputText id="CompanyPostcode" styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compPostcode}">
    	</t:outputText>
    	
    	<h:panelGroup>
	    	<h:outputLabel for="CompanyCity" value="#{messages['city']}" styleClass="standardText_Label" />
	    </h:panelGroup>
        <t:outputText id="CompanyCity"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compCity}"></t:outputText>
	    	
	    <h:panelGroup>
	    	<h:outputLabel for="CompanyCountry" value="#{messages['country']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:outputText id="CompanyCountry" styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compCountry.desc}"/>
    	
	    <h:panelGroup>
	   		<h:outputLabel for="CompanyState" value="#{messages['state']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:outputText id="CompanyState"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compState.desc}"></t:outputText>
	    
	    <h:outputLabel for="TelephoneNoOffice" value="#{messages['telephone.no']}" styleClass="standardText_Label" />
    	<t:outputText id="TelephoneNoOffice"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compTelno}">
    	</t:outputText>
	    
	    <h:outputLabel for="FaxNoOffice" value="#{messages['fax.no']}" styleClass="standardText_Label" />
    	<t:outputText id="FaxNoOffice"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.compFaxno}">
    	</t:outputText>
	</t:panelGrid>
	
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['mailing.info']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid id="mailInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
	
		<h:panelGroup>
			<h:outputLabel for="MailAddress1" value="#{messages['address']}" styleClass="standardText_Label" />
		</h:panelGroup>
		
	    <t:outputText id="MailAddress1"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.mailAddress1}"></t:outputText>
	     
	    <h:panelGroup></h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="MailAddress2"   styleClass="standardText" value="#{adminPartnerApprovalBean.partner.mailAddress2}"></t:outputText>
	    </h:panelGroup>
	    
	   <h:panelGroup>
			<h:outputLabel for="MailPostcode" value="#{messages['postcode']}" styleClass="standardText_Label" />
		</h:panelGroup>
	    <t:outputText id="MailPostcode" styleClass="standardText" value="#{adminPartnerApprovalBean.partner.mailPostcode}">
	    </t:outputText>
	    
	      <h:panelGroup>
			 <h:outputLabel for="MailCity" value="#{messages['city']}" styleClass="standardText_Label" />
		</h:panelGroup>	
		<t:outputText  id="MailCity"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.mailCity}"></t:outputText>
	    
	    	
	     <h:panelGroup>
			 <h:outputLabel for="MailCountry" value="#{messages['country']}" styleClass="standardText_Label" />
		</h:panelGroup>
    	<t:outputText id="MailCountry"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.mailCountry.desc}"></t:outputText>
    	
	  
	    <h:panelGroup>
			 <h:outputLabel for="MailState" value="#{messages['state']}" styleClass="standardText_Label" />
		</h:panelGroup>
    	<t:outputText id="MailState"  styleClass="standardText" value="#{adminPartnerApprovalBean.partner.mailState.desc}"></t:outputText> <%----%>
	   
	</t:panelGrid>
	
	<rich:spacer height="30"></rich:spacer>
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['action']}" styleClass="sub_header" />
		<h:panelGroup>
				<h:outputText value="*" styleClass="standardText_Mandatory" />
				<h:outputText value="#{messages['instruction']}" styleClass="standardText_Instruction" />
		</h:panelGroup>
	</h:panelGrid>
	<t:panelGrid id="data" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
	
		<h:outputText></h:outputText>
		<t:message for="code" styleClass="error"></t:message>

		<h:panelGroup>
			<h:outputText value="*" styleClass="standardText_Mandatory" />
			<h:outputLabel for="code" value="#{messages['code']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:inputText id="code" size="50" maxlength="50" styleClass="standardText" value="#{adminPartnerApprovalBean.code}"></t:inputText>
		</h:panelGroup>
		
		<h:outputText></h:outputText>
		<t:message for="reason" styleClass="error"></t:message>
		
		<h:panelGroup>
			<h:outputText value="*" styleClass="standardText_Mandatory" />
			<h:outputLabel for="reason" value="#{messages['reason']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:inputTextarea id="reason" required="true" cols="20" rows="5" value="#{adminPartnerApprovalBean.reason}"></t:inputTextarea>
		</h:panelGroup>
		
		<t:outputText></t:outputText>
		<rich:spacer height="30"></rich:spacer>
	
		<t:outputText></t:outputText>
		<t:panelGroup>
		 	<h:commandButton value="#{messages['aprrove']}" styleClass="button" action="#{adminPartnerApprovalBean.partnerApproveAction}">
		 	</h:commandButton>
		 	<f:verbatim>&nbsp;</f:verbatim>
   			<h:commandButton value="#{messages['reject']}" styleClass="button" action="#{adminPartnerApprovalBean.partnerRejectAction}">
   				</h:commandButton>
   			<f:verbatim>&nbsp;</f:verbatim>
   			<h:commandButton value="#{messages['cancel']}" styleClass="button" immediate="true" action="#{adminPartnerApprovalBean.navPortal}"></h:commandButton>
   		</t:panelGroup>
	</t:panelGrid>
	
</rich:panel>